export function pxToRpx(px) {
	// 获取当前设备的屏幕宽度
	const screenWidth = uni.getStorageSync('screenWidth');
	const rpx = (px * 750) / screenWidth;
	return rpx;
}


export function rpxToPx(rpx) {
	// 获取当前设备的屏幕宽度
	const screenWidth = uni.getStorageSync('screenWidth');
	const px = (screenWidth * rpx) / 750;
	return px;
}

